package com.mask.im.business.model.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录日志记录
 *
 * @author jian
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("sys_login_log")
public class SysLoginLogEntity {
    //登入记录id
    private Integer id;
    //登入用户id
    private Integer userId;
    //题目
    private String title;
    //描述
    private String description;
    //建议
    private String suggestion;
    //ip地址
    private String ipAddress;
    //ip来源
    private String ipSource;
    //操作系统
    private String os;
    //浏览器
    private String browser;
    //登入方式
    private String loginMethod;
    //是否预警（0否1是）
    private Integer isForewarn;

    //登入时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}

